package com.hao.eduservice.client;

import com.hao.commonutils.R;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author chenwenhao
 * @version 1.0.0
 * @ClassName VodFileDegradeFeignClient.java
 * @Description
 * @createTime 2020/12/14,20:25
 * 调用远程服务失败（服务熔断）后，执行
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {
    @Override
    public R removeAliVideo(String videoId) {
        return R.error().message("调用Vod服务删除视频出错！");
    }

    @Override
    public R deleteAliVideos(List<String> videoIds) {
        return R.error().message("调用Vod服务删除多个视频出错！");
    }
}
